package com.wc.AlgoOJ_train.train1.c6.A605;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/10 21:32
 * @description 统计元音
 * http://43.138.190.70:8888/p/A605
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        char[] letter = "aeiou".toCharArray();
        while (n-- > 0) {
            String s = sc.nextLine();
            int[] buck = new int[128];
            char[] chs = s.toCharArray();
            for (char ch : chs) {
                buck[ch]++;
            }
            for (int i = 0; i < 5; i++) {
                System.out.println(letter[i] + ":" + buck[letter[i]]);
            }
            System.out.println();
        }
    }
}
